<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="/WEB-INF/tlds/nodes-faces.tld" prefix="n" %>

<f:subview id="dataLinks">

        <h:panelGrid styleClass="#{(LayoutBean.showingActions) ? 'table' : 'menu'}" >


            <%-- New node --%>
            <h:outputText rendered="#{NodesBean.appletSubstitution}" escape="false" value='<span onclick="runDialog(\'newNode\')" class="commandLink">#{msg.dataActionsNew}</span>'/>
            <h:commandLink value="#{msg.dataActionsNew}" actionListener="#{DataBean.renderNew}" styleClass="submit" rendered="#{!NodesBean.appletSubstitution}"/>

            <h:panelGroup>
                <%-- Move --%>
                <h:outputText rendered="#{NodesBean.appletSubstitution}" escape="false" value='<span onclick="runDialog(\'move\')" class="commandLink">#{msg.dataActionsMove}</span>'/>
                <h:commandLink value="#{msg.dataActionsMove}" actionListener="#{DataBean.renderMove}" styleClass="submit" rendered="#{!NodesBean.appletSubstitution}"/>

                <h:outputText value="/"/>

                <%-- Copy --%>
                <h:outputText rendered="#{NodesBean.appletSubstitution}" escape="false" value='<span onclick="runDialog(\'copy\')" class="commandLink">#{msg.dataActionsCopy}</span>'/>
                <h:commandLink value="#{msg.dataActionsCopy}" actionListener="#{DataBean.renderCopy}" styleClass="submit" rendered="#{!NodesBean.appletSubstitution}"/>
            </h:panelGroup>

            <%-- Order --%>
            <h:outputText rendered="#{NodesBean.appletSubstitution}" escape="false" value='<span onclick="runDialog(\'order\')" class="commandLink">#{msg.dataActionsOrder}</span>'/>
            <h:commandLink value="#{msg.dataActionsOrder}" actionListener="#{DataBean.renderOrder}" styleClass="submit" rendered="#{!NodesBean.appletSubstitution}"/>

            <%-- Remove --%>
            <h:outputText rendered="#{NodesBean.appletSubstitution}" escape="false" value='<span onclick="runDialog(\'remove\')" class="commandLink">#{msg.dataActionsRemove}</span>'/>
            <h:commandLink value="#{msg.dataActionsRemove}" actionListener="#{DataBean.renderRemove}" styleClass="submit" rendered="#{!NodesBean.appletSubstitution}"/>

            <h:panelGroup>
                <%-- Export file --%>
                <h:outputText rendered="#{NodesBean.appletSubstitution && DataBean.file}" escape="false" value='<span onclick="runDialog(\'exportFile\')" class="commandLink">#{msg.dataActionsExportFile}</span>'/>
                <h:commandLink value="#{msg.dataActionsExportFile}" actionListener="#{DataBean.renderExportFile}" styleClass="submit" rendered="#{!NodesBean.appletSubstitution && DataBean.file}"/>

                <h:outputText value="/" rendered="#{DataBean.file}"/>

                <%-- Export --%>
                <h:outputText rendered="#{NodesBean.appletSubstitution}" escape="false" value='<span onclick="runDialog(\'exportRepositoryNode\')" class="commandLink">#{msg.dataActionsExport}</span>'/>
                <h:commandLink value="#{msg.dataActionsExport}" actionListener="#{DataBean.renderExport}" styleClass="submit" rendered="#{!NodesBean.appletSubstitution}"/>

                <h:outputText value="/"/>

                <%-- Import --%>
                <h:outputText rendered="#{NodesBean.appletSubstitution}" escape="false" value='<span onclick="runDialog(\'importRepositoryNode\')" class="commandLink">#{msg.dataActionsImport}</span>'/>
                <h:commandLink value="#{msg.dataActionsImport}" actionListener="#{DataBean.renderImport}" styleClass="submit" rendered="#{!NodesBean.appletSubstitution}"/>
            </h:panelGroup>
            
            <jsp:directive.include file="ac/link.jsp"/>         
            <jsp:directive.include file="template/link.jsp"/>         
            <jsp:directive.include file="instance/link.jsp"/>         
            <jsp:directive.include file="vpinstance/link.jsp"/>         

        </h:panelGrid>

</f:subview>